<div align="center">
{if $is_admin}
<div align="left">Tổng SS: {$total_ss} ss<br />

Tài khoản: <input type="text" name="o_name" id="o_name" value="{$o_name}" /> 
ID: <input type="text" name="o_id" id="o_id" value="{$o_id}" />
<input type="checkbox" id="open_id_login" name="open_id_login" {$open_id_login_check} value="1" /><label for="open_id_login">Đăng nhập OpenID</label> <input type="submit" value="Tìm kiếm" />
</div>
{/if}
<table width="99%" border="0" cellpadding="0" cellspacing="1">
<tr valign="middle"  style="line-height:25px">
  <th colspan="4" align="left" nowrap ><i>Hiện tại, có {$total} người dùng đang duyệt {$where}, trong đó có {$total_mem} thành viên!</i></th>
  </tr>
	{if $total_mem}
    <tr><td colspan="4" height="3" class="manage_dot"></td></tr>
    <tr valign="middle"  style="line-height:25px">
        <th width="13%" align="left" nowrap >
            Thành	viên</th>
      <th width="27%" align="left" nowrap >Đang xem</th>
      {if $is_admin}
      		<th width="24%" align="center" nowrap >OpenID</th>
       {/if}
      <th width="36%" align="center" nowrap >
            Truy cập lần cuối</th>
    </tr>
	<tr><td height="2" bgcolor="#a5a5a5" colspan="4"></td></tr>
	{foreach from=$user_onlines item=user}
    <tr  style="line-height:25px" valign="middle" >
            <td align="left" valign="top" nowrap bgcolor="#FFFFFF"><a title="{$user.title}" href="{$user.link}"><strong>{$user.user_name}</strong></a>        </td>
          <td align="left" valign="top" nowrap bgcolor="#FFFFFF"><a href="{$user.viewing_page_url}">{$user.viewing_page_name}</a>
            {if $user.ip}
                <br />
                {$user.ip}
          {/if}</td>
          {if $is_admin}
          	<td align="center" valign="top" nowrap bgcolor="#FFFFFF"><font color="#c00c00"><strong>{$user.open_id}</strong></font></td>
          {/if}
          <td align="center" valign="top" nowrap bgcolor="#FFFFFF">{$user.viewing_time}
          
          {if $user.del_s}
          {$user.del_s}
          {/if}          </td>
        </tr>
	 <tr><td colspan="4" height="3" class="manage_dot"></td></tr> 
	{/foreach}
    {/if}
</table>
<div style="margin-right:10px;float:right;" align="right">
    {$paging}
</div>

{if $guest_onlines}
<div align="center">
<table width="99%" border="0" cellpadding="0" cellspacing="1">
<tr valign="middle"  style="line-height:25px">
  <th colspan="3" align="left" nowrap >Khách vãng lai {$total_guest}</th>
  </tr>
  <tr>
  <td colspan="3" height="3" class="manage_dot"></td></tr>
    <tr valign="middle"  style="line-height:25px">
            <th width="19%" align="left" nowrap >
                Thành	viên</th>
          <th width="56%" align="left" nowrap >Đang xem</th>
      <th width="25%" align="center" nowrap >Truy cập lần cuối</th>
        </tr>
	<tr><td height="2" bgcolor="#a5a5a5" colspan="3"></td></tr>
	{foreach from=$guest_onlines item=guest}
    <tr  style="line-height:25px" valign="middle" >
            <td align="left" valign="top" nowrap bgcolor="#FFFFFF"><a title="{$guest.title}" href="{$guest.link}"><strong>{$guest.user_name}</strong></a>        </td>
          <td align="left" valign="top" nowrap bgcolor="#FFFFFF"><a href="{$guest.viewing_page_url}">{$guest.viewing_page_name}</a>
            {if $guest.ip}
                <br />
                {$guest.ip}
          {/if}</td>
          <td align="center" valign="top" nowrap bgcolor="#FFFFFF">{$guest.viewing_time}
          
          {if $guest.del_s}
          {$guest.del_s}
          {/if}
          </td>
        </tr>
	 <tr><td colspan="3" height="3" class="manage_dot"></td></tr> 
	{/foreach}
</table>
 <div style="margin-right:10px; float:right;" align="right">
        {$paging_guest}
  </div>
{/if}